<h3>Party Accounts Details</h3>
<div class="pull-right" ><a  style="cursor: pointer" title="Print All"  onclick="PrintDiv();"><i class="icon-print"></i></a></div>
<hr>
<div class="container-fluid" id="print">
	<table class="table table-striped "  border="1px"  bordercolor="#e4e3e8" width="100%" id="example">
	<tr>
		
		<td class="span4"><font size="2px"><b>Party Name</b></font></td>
		<td class="span2"><font size="2px"><b>Debit</b></font></td>
		<td class="span2"><font size="2px"><b>Credit</b></font></td>
		<td class="span2"><font size="2px"><b>Balance</b></font></td>
		<td class="span2">&nbsp;</td>
	</tr>
	<?php $counter=0;?>
	<?php foreach ($parties as $party):?>
		<?php $counter = $counter+1;?>
		<tr>
			<td class="text-info"><font  size="2px"><?php echo $party->user_name; ?></font></td>
			<td class="text-info"><font  size="2px"><?php  echo "Rs.". $party->debit; ?></font></td>
            <td class="text-info"><font  size="2px"><?php  echo "Rs. ". $party->credit; ?></font></td>
			<td class="text-info"><font  size="2px"><?php  echo "Rs. ". ($party->debit - $party->credit); ?></font></td>
			<td> <a style="cursor: pointer" title="Show Details"  onclick="get_uniquecustomer('<?php echo $party->id_user; ?>','<?php echo $counter;?>')"><i class="icon-plus"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 <a style="cursor: pointer" title="Hide Details" onclick="hide_uniquecustomer('<?php echo $counter;?>')"><i class="icon-minus"></i></a>	</td>
            
		</tr>
		<tr id="unique_report<?php echo $counter;?>" style="display: none" >
		
	
		</tr>
	<?php endforeach;?>
	</table>
</div>

